﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter03.MathTest
{
    public static class UseingObject
    {
        public static void Use()
        {
            Console.WriteLine("Pi is " + Math.GetPi());
            var x = Math.GetSquareOf(5);
            Console.WriteLine("Square of 5 is " + x);

            var math = new Math();
            math.Value = 30;
            Console.WriteLine("Value field of math variable contains " + math.Value);
            Console.WriteLine("Square of 30 is " + math.GetSquare());
        }
    }
}
